/**
 * folktale中的compose,curry
 */

import {
  compose,
  curry,
} from 'folktale/core/lambda'

import {
  first,
  toUpper,
} from 'lodash/fp'

let f = curry(2, (x, y) => x + y)
console.log(f(1, 2))
console.log(f(1)(2))

let f2 = compose(toUpper, first)
console.log(f2(['one', 'two']))

export {}



